CDSEND

Section: User Commands (1)
Updated: sgi
Index Return to Main Contents
 

NAME

cdsend - read an audio CD and convert  

SYNOPSIS

cdsend [ -c catalogfile ] [ -n ] [ -d ] [ -p ] [ -l ]  

DESCRIPTION

Cdsend reads audio CD's through the SCSI bus and converts the data to one of several formats. The formats are 8kHz, mono, U-law (1 byte per sample), and 8kHz, mono, linear (2 bytes per sample). The default is to convert to U-law. Linear can be chosen by using the -l option.

When a CD has been read completely, it is automatically ejected from the drive. When in daemon mode, cdsend will then wait for a new CD to be inserted. If a CD that is not an audio CD is inserted, it is ignored. This means that cdsend does not have to be killed when the CD-ROM drive has to be used for software installations. Daemon mode is selected by using the -d flag.

Optionally, cdsend will play the unconverted sound through the audio interface. This can be enabled using the -p option or by sending a SIGHUP to cdsend.

Cdsend writes information that identifies the CD being read to a file. The name of the file is $HOME/.CDcatalognumber, unless another file is specified using the -c flag. The information written consists of three lines. All lines are of the form identifier=value. The first line is the result of a hash function on the CD's table of contents. This is the same value that is used by cdman(1) to generate a file name for the title of the CD. The second line is the table of contents. The table of contents is encoded in the way that cdplayer(1) and cdman(1) use. The third line is either the catalog number on the CD (if present) or the total playing time of the CD in the format tracks.minutes.seconds.frames.

When the -n flag is present, cdsend will run with a non-degrading priority. The priority chosen is NDPNORMMAX, which is the lowest non-degrading priority higher than the normal user priorities. This option will only have an effect if cdsend is installed set-uid root.

When playing, cdsend can still be influenced. This is done by sending certain signals to the process. The following signals are accepted.

SIGHUP
Toggle between playing and not playing through the system's audio interface.
SIGUSR1
Stop playing the current CD and eject it.

When cdsend stops playing, whether it is because the CD has finished ot because it was sent a SIGHUP, it sets the sampling rate of the audio interface back.

Typically, cdsend is started as follows:

cdsend -dnpl | broadcast -l -a -b <broadcast address> &

With older broadcast programs you may need to use the following:

cdsend -dnp | broadcast -b <broadcast address> &
 

SEE ALSO

schedctl(2), apanel(1), cdman(1), cdplayer(1), broadcast(1).


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 10:14:35 GMT, January 04, 2023